<%--
  页面功能:
  作者: yangyan
  创建日期: 2015/5/9 
  创建时间: 11:34
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html lang="zh_CN" ng-app="LoginModule">
<head>
    <title>系统登录</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" type="text/css" href="/resources/bootstrap/dist/css/bootstrap.min.css">
    <%--<link rel="stylesheet" type="text/css" href="/resources/bootstrap/dist/css/bootstrap-theme.min.css">--%>
</head>
<body>
<div class="container-fluid">
    <div class="page-header">
        <h1>系统登录</h1>

        <p class="lead">通用后台系统框架.</p>
    </div>

    <div class="row" ng-controller="LoginController">

        <div class="col-md-8 hidden-sm">

        </div>
        <div class="col-md-3 col-xs-12 col-sm-8 col-sm-offset-2 col-md-offset-0">
            <div class="alert alert-danger" role="alert" ng-show="error">{{error}}</div>
            <form class="" ng-submit="login(email,password,captcha)" onsubmit="return false;" autocomplete="off">
                <div class="form-group">
                    <label for="emailInputField">邮箱</label>
                    <input type="email" class="form-control" name="email" id="emailInputField" autocomplete="on"
                           value=""
                           placeholder="Enter email" ng-model="email">
                </div>
                <div class="form-group">
                    <label for="passwordInputField">密码</label>
                    <input type="password" class="form-control" name="password" id="passwordInputField"
                           autocomplete="off" value=""
                           placeholder="Password" ng-model="password">
                </div>

                <div class="form-group ">
                    <label for="passwordInputField">验证码</label>
                    
                    <div class="input-group">

                        <input type="text" class="form-control" name="captcha" autocomplete="off" value=""
                               ng-model="captcha" style="height: 54px;" maxlength="4">

                        <div class="input-group-addon">
                            <img id="captcha" src="{{captchaUrl}}" height="40"
                                 ng-click="refreshCaptcha()"/>
                        </div>


                    </div>


                </div>


                <div class="form-group">
                    <label>
                        <input type="checkbox"> 一周内免登录
                    </label>
                    <a href="#">找回密码</a>
                </div>
                <button type="submit" class="btn btn-primary">登录</button>
            </form>
        </div>
        <div class="col-md-1"></div>

    </div>
</div>


<script src="/resources/jquery/dist/jquery.min.js"></script>
<script src="/resources/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="/resources/angular/angular.min.js"></script>
<script src="/static/admin/controllers/login.js"></script>
<%--<script src="/resources/less/dist/less.min.js"></script>--%>

</body>
</html>
